// const { exchange } = require('./index')
const TI = require('trading-indicator')

// TI.bb(50, 2, 'close', 'binance', 'BTC/USDT', '5m', true)
TI.bb(50, 2, "close", "binance", "BTC/USDT", "15m", true)
    .then(bollList => {
        console.log(bollList.filter(item => (item.upper - item.middle) > 300).map(item => item.upper - item.middle))
    })
    .catch(err => {
        console.log(err)
    })